package com.draven.tongzhou.controller

import javax.servlet.http.HttpServletRequest
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.{RequestMapping, ResponseBody}
import org.springframework.web.servlet.ModelAndView

/**
  * Created by Draven on 2018/7/9.
  * Email:hjx@qiandw.com
  */
@Controller
@RequestMapping(value = Array("/management"))
class IndexContrller extends CommonController {


  /**
    * 进入主界面容器
    *
    * @param request
    * @return
    */
  @RequestMapping(value = Array("/index"))
  def toIndexPage(request: HttpServletRequest): ModelAndView = {
    toPageWithAttr("/index", Map(("username", "admin")))
  }
}
